#ifndef IEEE_ROBOT_H_
#define IEEE_ROBOT_H_

//global settings
#define FOSC 4000000    //Fosc at the moment
#define TCY 4/FOSC
#define TCYCNT_4_MS 0.001*FOSC/4  

//A2D Threshold values
#define VCC_THRESH  0x02CD	    //set vcc threshold to 3.5 volts 
#define PHOTO_THRESH  0x0200    //set photo thresh to 2.5 volts
								//this means photo resistance is 
								//equal to pull up resisto

//bit manipulation routines
#define set_bit(REG,BIT) (REG | (1 << BIT))
#define clear_bit(REG,BIT) (REG & (~(1 <<BIT)))
#define test_bit(REG,BIT) (REG & (1 << BIT))


#endif

